package com.ruoyi.rtsp.controller;

import com.ruoyi.rtsp.service.RtspService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RestController
@RequestMapping("/rtsp")
public class RtspController {
    @Autowired
    RtspService rtspService;

    @GetMapping(value = "/test/{id}/{isMainFlow}")
    public void rtspVideo(@PathVariable("id") String id, @PathVariable("isMainFlow") String type) {
        rtspService.live(id, type);
    }
}